package StudyCode.summary.mycollection;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class SumSquaresIntArray {
	public static long sumSquares(int[] data) {
		long ans = 0;
		for (int aData : data) {
			ans += aData * aData;
		}
		return (ans);
	}
}
